½Ŀ¼:

5.3. Դվ(upstream)
   5.3.1. ȡԴվб
   5.3.2. ȺԴվ
   5.3.3. Դվ
   5.3.4. ޸Դվ
   5.3.5. ɾԴվ
   
5.3. Դվ(upstream):
     
     ˵:
     ÿöӦһԴվ, Fikker ûոؾ
     򽫷ַԴվ.
     
5.3.1. ȡԴվб:
     
     +-----------------+
     |Client -> Server:|
     +-----------------+
     
     a. : POST  GET;
     
     b. : http://xxxxx.com/fikker/webcache.fik?type=upstream&cmd=list
     
     c.  URL :
        
        ProxyID - ָʶ ID;
        SessionID - ¼Ự ID;
        <IncludeCrt> - ѡ, Ƿ SSL ֤Ϣ: (0), (1), Ĭ(0);
        <IncludeStat> - ѡ, ǷͳϢ: (0), (1), Ĭ(1);
        
     +-----------------+
     |Server -> Client:|
     +-----------------+
     
     a. :
        
        Return: 
        , True - ɹ, False - ;
        
        ErrorNo:
        ,  Return ֵΪ False ʱ˱Ч;
        
        ProxyID:
        ʶ ID,  Return ֵΪ True ʱ˱Ч;
        
        NumOfLists:
        б, бж;
        
        NO:
        беǰöٵ, ǰöٵǵڼ, 
        Сڵ NumOfLists ֵ, ȡֵΧ: 1 ~ NumOfLists;
        
        UpstreamID:
        Դվʶ ID;
        
        Host:
        Դվ IP ַ;
        
        SSLOpt:
        SSL ȫѡ, ֧HTTP(0), ֧HTTPS(1), ͬʱ֧HTTP+HTTPS(2)
        
        SSLCrtContent:
        SSL ֤, ֤Ϊͨ PEM ʽ, Ϊʾַ.
        
        SSLKeyContent:
        SSL ˽Կ, ˽ԿΪͨ PEM ʽ, Ϊʾַ.
        
        SSLExtraParams:
        SSL ѡ, Ϊʾַ.
        
        StartTime:
        Դվʵʱͳ - ͳƿʼʱ;
        
        EndTime:
        Դվʵʱͳ - ͳƽʱ;
        
        CurrentTickCount:
        ԴվЧڵĺ(ms);
        
        RequestCount:
        Դվʵʱͳ - û;
        
        UploadCount:
        Դվʵʱͳ - ûϴ(λ: ֽ);
        
        DownloadCount:
        Դվʵʱͳ - û(λ: ֽ);
        
        IpCount:
        Դվʵʱͳ - û IP ;
        
        UserConnections:
        ǰû;
        
        UpstreamConnections:
        ǰԴվ;
        
        IsDown:
        ǰԴվ崻״̬, 1 - 崻, 0 - ;
        
        DownTime:
        ǰԴվ崻ʱ, ʽΪ yyyy-mm-dd hh:mm:ss
        
        Note:
        ע˵,  500 ֽ;
     
5.3.2. ѯԴվ:
     
     +-----------------+
     |Client -> Server:|
     +-----------------+
     
     a. : POST  GET;
     
     b. : http://xxxxx.com/fikker/webcache.fik?type=upstream&cmd=query
     
     c.  URL :
        
        ProxyID - ָʶ ID;
        UpstreamID - ҪѯԴվʶ ID;
        SessionID - ¼Ự ID;
        <IncludeCrt> - ѡ, Ƿ SSL ֤Ϣ: (0), (1), Ĭ(1);
        <IncludeStat> - ѡ, ǷͳϢ: (0), (1), Ĭ(1);
        
     +-----------------+
     |Server -> Client:|
     +-----------------+
     
     a. :
        
        Return: 
        , True - ɹ, False - ;
        
        ProxyID:
        ʶ ID,  Return ֵΪ True ʱ˱Ч;
        
        ErrorNo:
        ,  Return ֵΪ False ʱ˱Ч;
        
        NumOfLists:
         1, Ϊ 0;
        
        NO:
        беǰöٵ, ǰöٵǵڼ, 
        Сڵ NumOfLists ֵ, ȡֵΧ: 1 ~ NumOfLists;
        
        UpstreamID:
        Դվʶ ID;
        
        Host:
        Դվ IP ַ;
        
        SSLOpt:
        SSL ȫѡ, ֧HTTP(0), ֧HTTPS(1), ͬʱ֧HTTP+HTTPS(2)
        
        SSLCrtContent:
        SSL ֤, ֤Ϊͨ PEM ʽ, Ϊʾַ.
        
        SSLKeyContent:
        SSL ˽Կ, ˽ԿΪͨ PEM ʽ, Ϊʾַ.
        
        SSLExtraParams:
        SSL ѡ, Ϊʾַ.
        
        StartTime:
        Դվʵʱͳ - ͳƿʼʱ;
        
        EndTime:
        Դվʵʱͳ - ͳƽʱ;
        
        CurrentTickCount:
        ԴվЧڵĺ(ms);
        
        RequestCount:
        Դվʵʱͳ - û;
        
        UploadCount:
        Դվʵʱͳ - ûϴ(λ: ֽ);
        
        DownloadCount:
        Դվʵʱͳ - û(λ: ֽ);
        
        IpCount:
        Դվʵʱͳ - û IP ;
        
        UserConnections:
        ǰû;
        
        UpstreamConnections:
        ǰԴվ;
        
        IsDown:
        ǰԴվ崻״̬, 1 - 崻, 0 - ;
        
        DownTime:
        ǰԴվ崻ʱ, ʽΪ yyyy-mm-dd hh:mm:ss
        
        Note:
        ע˵,  500 ֽ;
        
5.3.3. Դվ:
     
     ˵:
     ÿһԴվӦһ;
     
     +-----------------+
     |Client -> Server:|
     +-----------------+
     
     a. : POST  GET;
     
     b. : http://xxxxx.com/fikker/webcache.fik?type=upstream&cmd=add
     
     c.  URL :
        
        ProxyID - ӦĴʶ ID;
        Host - Դվ IP ַ(:˿  IP:˿),  200 ֽ;
        Note - ע˵,  500 ֽ;
        SSLOpt - SSL ȫѡ, ֧HTTP(0), ֧HTTPS(1), ͬʱ֧HTTP+HTTPS(2)
        <SSLCrtContent> - SSL ֤, ֤Ϊͨ PEM ʽ, Ϊʾַ.
        <SSLKeyContent> - SSL ˽Կ, ˽ԿΪͨ PEM ʽ, Ϊʾַ.
        <SSLExtraParams> - SSL ѡ, Ϊʾַ.
        SessionID - Ա¼Ự ID;
        
     +-----------------+
     |Server -> Client:|
     +-----------------+
     
     a. :
        
        Return: 
        , True - ɹ, False - ;
        
        ProxyID:
        ӦĴʶ ID;
        
        UpstreamID:
        ӵɵԴվʶ ID,  Return ֵΪ True ʱ˱Ч;
        
        ErrorNo:
        ,  Return ֵΪ False ʱ˱Ч;

5.3.4. ޸Դվ:

     +-----------------+
     |Client -> Server:|
     +-----------------+
     
     a. : POST  GET;
     
     b. : http://xxxxx.com/fikker/webcache.fik?type=upstream&cmd=modify
     
     c.  URL :
        
        ProxyID - ӦĴʶ ID;
        UpstreamID - Ҫ޸ĵԴվʶ ID;
        Host - Դվ IP ַ(:˿  IP:˿),  200 ֽ;
        SSLOpt - SSL ȫѡ, ֧HTTP(0), ֧HTTPS(1), ͬʱ֧HTTP+HTTPS(2)
        <SSLCrtContent> - SSL ֤, ֤Ϊͨ PEM ʽ, Ϊʾַ.
        <SSLKeyContent> - SSL ˽Կ, ˽ԿΪͨ PEM ʽ, Ϊʾַ.
        <SSLExtraParams> - SSL ѡ, Ϊʾַ.
        Note - ע˵,  500 ֽ;
        SessionID - Ա¼Ự ID;
        
     +-----------------+
     |Server -> Client:|
     +-----------------+
     
     a. :
        
        Return: 
        , True - ɹ, False - ;
        
        ProxyID:
        ӦĴʶ ID;
        
        UpstreamID:
        ޸ĵԴվʶ ID,  Return ֵΪ True ʱ˱Ч;
        
        ErrorNo:
        ,  Return ֵΪ False ʱ˱Ч;

5.3.5. ɾԴվ:

     +-----------------+
     |Client -> Server:|
     +-----------------+
     
     a. : POST  GET;
     
     b. : http://xxxxx.com/fikker/webcache.fik?type=upstream&cmd=del
     
     c.  URL :
        
        ProxyID - ӦĴʶ ID;
        UpstreamID - Ҫ޸ĵԴվʶ ID;
        SessionID - Ա¼Ự ID;
        
     +-----------------+
     |Server -> Client:|
     +-----------------+
     
     a. :
        
        Return: 
        , True - ɹ, False - ;
        
        ProxyID:
        ӦĴʶ ID;
        
        UpstreamID:
        ɾԴվʶ ID,  Return ֵΪ True ʱ˱Ч;
        
        ErrorNo:
        ,  Return ֵΪ False ʱ˱Ч;
